//
//  TSTaskProgressController.m
//  chart
//
//  Created by 曾斌 on 16/4/10.
//  Copyright (c) 2016年 xu. All rights reserved.
//

#import "TSTaskProgressController.h"
#import "TSProgressTableView.h"
@implementation TSTaskProgressController
{
    TSProgressTableView * tableView;
}
@synthesize id;
#pragma mark - requestData

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(refreshUserViewController:) name:TSNotification_ScheduleCreateSucceeded object:nil];
    
    //self.navigationItem.title = @"个人日程";
    
//    WS(weakSelf);
//    [self rightBarButtonWithTitle:nil barNorImage:[UIImage imageNamed:@"topic_follow_add"] barHltImage:nil action:^{
//        if (!weakSelf) {
//            return;
//        }
//        UIActionSheet *action_sheet = [self createActionSheet];
//        [action_sheet showInView:weakSelf.view];
//    }];
    
    tableView = [[TSProgressTableView alloc] initWithFrame:self.view.bounds style:UITableViewStylePlain];
    [self.view addSubview:tableView];
    tableView.taskId = self.id;
    self.navigationItem.title = @"任务进度";
    [tableView.header beginRefreshing];
}

@end
